package lancs.mobilemedia.core.ui.controller.commands;

import lancs.mobilemedia.core.ui.controller.AbstractController;
import lancs.mobilemedia.core.ui.controller.ControllerCommand;
import lancs.mobilemedia.core.ui.controller.ScreenSingleton;
import lancs.mobilemedia.core.ui.screens.NewLabelScreen;
import lancs.mobilemedia.core.util.Constants;

public class NewAlbum implements ControllerCommand {

	public boolean execute(AbstractController controller) {
		System.out.println("Create new Photo Album here");			
		ScreenSingleton.getInstance().setCurrentScreenName(Constants.NEWALBUM_SCREEN);
		NewLabelScreen canv = new NewLabelScreen("Add new Photo Album", NewLabelScreen.NEW_ALBUM);
		canv.setCommandListener(controller);
		controller.setCurrentScreen(canv);
		canv = null;
		return true;
	}
}
